function log(target,name,descriptor){
    console.log(target,name,descriptor);
}

// es6 decorator
@log
class Car{
    run(){
        console.log('car is running');
    }
}